<template>
  <h3>容器布局组件</h3>
  <div class="common-layout">
    <el-container>
<!--      侧边栏-->
      <el-aside width="200px">
        <el-menu>
          <el-menu-item index="1">员工管理</el-menu-item>
          <el-menu-item index="2">车辆管理</el-menu-item>
          <el-menu-item index="3">围栏管理</el-menu-item>
        </el-menu>
      </el-aside>
      <el-container>
<!--        右侧头部-->
        <el-header>
          <h1 style="background-color: #0aa1ed;color: #fff;">智慧车辆管理系统-IVDS</h1>
        </el-header>
<!--        右侧主体区域-->
        <el-main>
          <el-table :data="vehicleArr">
            <el-table-column type="index" align="center" label="序号"></el-table-column>
            <el-table-column prop="brand" align="center" label="品牌"></el-table-column>
            <el-table-column prop="model" align="center" label="型号"></el-table-column>
            <el-table-column prop="license" align="center" label="车牌号"></el-table-column>
            <el-table-column prop="color" align="center" label="颜色"></el-table-column>
            <el-table-column prop="km" align="center" label="里程"></el-table-column>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>


<script setup>
import {ref} from "vue";

const vehicleArr =ref([
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000},
  {brand: '奔驰', model: '梅赛德斯-迈巴赫S级', license: '粤A88888', color: '黑色',km: 10000}
])

</script>

<style scoped>

</style>